package tx.algoritmiek.week6;

import java.util.Random;

public class Main {

    /**
     * @param args
     */
    public static void main(String[] args) {
        final HashTable hashTable = new HashTable(31);
        
        final Random random = new Random();
        for(int i = 0; i < 100; i++) {
            final int index = i;
            new Runnable() {
                @Override
                public void run() {
                    if(index % 2 == 0) {
                        //Insert
                        hashTable.insert(random.nextInt(20));
                    } else {
                        //Remove
                        hashTable.remove(random.nextInt(20));
                    }
                }                
            }.run();
        }

    }

}
